package com.atguigu.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.CategoryBrandRelationEntity;

import java.util.List;
import java.util.Map;

/**
 * 品牌分类关联
 *
 * @author Syh
 * @email 1584442935@qq.com
 * @date 2022-02-07 14:29:04
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {

     List<CategoryBrandRelationEntity> selectBrandsById(Long catId);

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryBrandRelationEntity> selectBrandsByBrandId(Long brandId);

    void saveDetile(CategoryBrandRelationEntity categoryBrandRelation);


    //更新级联表数据
    void updateCategory(Long brandId, String name);

    //更新级联表数据
    void updateCategoryBrandRelation(Long catId, String name);
}

